

/* First created by JCasGen Mon Mar 28 12:51:53 CEST 2011 */
package ia1011.zanzibar.chaos.type;

import org.apache.uima.jcas.JCas; 
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;

import org.apache.uima.jcas.cas.TOP;


/** An Inter-Constituent Dependency (ICD) is a syntactic relation among two constituents: the head and the modifier represented respectively by the from and the to of this structure.
 * Updated by JCasGen Mon Mar 28 12:52:46 CEST 2011
 * XML source: /home/berardino/universita/IA/progetti_IA/Zanzibar/desc/Chaos/TypeSystemDescriptors/ChaosUimaTypeSystem.xml
 * @generated */
public class UimaDependency extends TOP {
  /** @generated
   * @ordered 
   */
  public final static int typeIndexID = JCasRegistry.register(UimaDependency.class);
  /** @generated
   * @ordered 
   */
  public final static int type = typeIndexID;
  /** @generated  */
  public              int getTypeIndexID() {return typeIndexID;}
 
  /** Never called.  Disable default constructor
   * @generated */
  protected UimaDependency() {}
    
  /** Internal - constructor used by generator 
   * @generated */
  public UimaDependency(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }
  
  /** @generated */
  public UimaDependency(JCas jcas) {
    super(jcas);
    readObject();   
  } 

  /** <!-- begin-user-doc -->
    * Write your own initialization here
    * <!-- end-user-doc -->
  @generated modifiable */
  private void readObject() {}
     
 
    
  //*--------------*
  //* Feature: kind

  /** getter for kind - gets 
   * @generated */
  public String getKind() {
    if (UimaDependency_Type.featOkTst && ((UimaDependency_Type)jcasType).casFeat_kind == null)
      jcasType.jcas.throwFeatMissing("kind", "ia1011.zanzibar.chaos.type.UimaDependency");
    return jcasType.ll_cas.ll_getStringValue(addr, ((UimaDependency_Type)jcasType).casFeatCode_kind);}
    
  /** setter for kind - sets  
   * @generated */
  public void setKind(String v) {
    if (UimaDependency_Type.featOkTst && ((UimaDependency_Type)jcasType).casFeat_kind == null)
      jcasType.jcas.throwFeatMissing("kind", "ia1011.zanzibar.chaos.type.UimaDependency");
    jcasType.ll_cas.ll_setStringValue(addr, ((UimaDependency_Type)jcasType).casFeatCode_kind, v);}    
   
    
  //*--------------*
  //* Feature: plausibility

  /** getter for plausibility - gets 
   * @generated */
  public float getPlausibility() {
    if (UimaDependency_Type.featOkTst && ((UimaDependency_Type)jcasType).casFeat_plausibility == null)
      jcasType.jcas.throwFeatMissing("plausibility", "ia1011.zanzibar.chaos.type.UimaDependency");
    return jcasType.ll_cas.ll_getFloatValue(addr, ((UimaDependency_Type)jcasType).casFeatCode_plausibility);}
    
  /** setter for plausibility - sets  
   * @generated */
  public void setPlausibility(float v) {
    if (UimaDependency_Type.featOkTst && ((UimaDependency_Type)jcasType).casFeat_plausibility == null)
      jcasType.jcas.throwFeatMissing("plausibility", "ia1011.zanzibar.chaos.type.UimaDependency");
    jcasType.ll_cas.ll_setFloatValue(addr, ((UimaDependency_Type)jcasType).casFeatCode_plausibility, v);}    
   
    
  //*--------------*
  //* Feature: from

  /** getter for from - gets 
   * @generated */
  public UimaConstituent getFrom() {
    if (UimaDependency_Type.featOkTst && ((UimaDependency_Type)jcasType).casFeat_from == null)
      jcasType.jcas.throwFeatMissing("from", "ia1011.zanzibar.chaos.type.UimaDependency");
    return (UimaConstituent)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((UimaDependency_Type)jcasType).casFeatCode_from)));}
    
  /** setter for from - sets  
   * @generated */
  public void setFrom(UimaConstituent v) {
    if (UimaDependency_Type.featOkTst && ((UimaDependency_Type)jcasType).casFeat_from == null)
      jcasType.jcas.throwFeatMissing("from", "ia1011.zanzibar.chaos.type.UimaDependency");
    jcasType.ll_cas.ll_setRefValue(addr, ((UimaDependency_Type)jcasType).casFeatCode_from, jcasType.ll_cas.ll_getFSRef(v));}    
   
    
  //*--------------*
  //* Feature: to

  /** getter for to - gets 
   * @generated */
  public UimaConstituent getTo() {
    if (UimaDependency_Type.featOkTst && ((UimaDependency_Type)jcasType).casFeat_to == null)
      jcasType.jcas.throwFeatMissing("to", "ia1011.zanzibar.chaos.type.UimaDependency");
    return (UimaConstituent)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((UimaDependency_Type)jcasType).casFeatCode_to)));}
    
  /** setter for to - sets  
   * @generated */
  public void setTo(UimaConstituent v) {
    if (UimaDependency_Type.featOkTst && ((UimaDependency_Type)jcasType).casFeat_to == null)
      jcasType.jcas.throwFeatMissing("to", "ia1011.zanzibar.chaos.type.UimaDependency");
    jcasType.ll_cas.ll_setRefValue(addr, ((UimaDependency_Type)jcasType).casFeatCode_to, jcasType.ll_cas.ll_getFSRef(v));}    
  }

    